import { createStore } from 'vuex'

export default createStore({
  state: {
    userInfo: {},
    addLink: 0,
  },
  mutations: {

    updateUser(state, userInfo) {
      state.userInfo = userInfo
    },
    clearUser(state) {
      state.userInfo = {}
    },
    changeLink(state) {
      state.addLink++
    }
  },
  actions: {
  },
  modules: {
  }
})
